package com.mxx.democharts2.pojo;

import java.util.ArrayList;
import java.util.List;

public class SmartBlankLibraryExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SmartBlankLibraryExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSeqIsNull() {
            addCriterion("seq is null");
            return (Criteria) this;
        }

        public Criteria andSeqIsNotNull() {
            addCriterion("seq is not null");
            return (Criteria) this;
        }

        public Criteria andSeqEqualTo(Integer value) {
            addCriterion("seq =", value, "seq");
            return (Criteria) this;
        }

        public Criteria andSeqNotEqualTo(Integer value) {
            addCriterion("seq <>", value, "seq");
            return (Criteria) this;
        }

        public Criteria andSeqGreaterThan(Integer value) {
            addCriterion("seq >", value, "seq");
            return (Criteria) this;
        }

        public Criteria andSeqGreaterThanOrEqualTo(Integer value) {
            addCriterion("seq >=", value, "seq");
            return (Criteria) this;
        }

        public Criteria andSeqLessThan(Integer value) {
            addCriterion("seq <", value, "seq");
            return (Criteria) this;
        }

        public Criteria andSeqLessThanOrEqualTo(Integer value) {
            addCriterion("seq <=", value, "seq");
            return (Criteria) this;
        }

        public Criteria andSeqIn(List<Integer> values) {
            addCriterion("seq in", values, "seq");
            return (Criteria) this;
        }

        public Criteria andSeqNotIn(List<Integer> values) {
            addCriterion("seq not in", values, "seq");
            return (Criteria) this;
        }

        public Criteria andSeqBetween(Integer value1, Integer value2) {
            addCriterion("seq between", value1, value2, "seq");
            return (Criteria) this;
        }

        public Criteria andSeqNotBetween(Integer value1, Integer value2) {
            addCriterion("seq not between", value1, value2, "seq");
            return (Criteria) this;
        }

        public Criteria andLibraryCodeIsNull() {
            addCriterion("library_code is null");
            return (Criteria) this;
        }

        public Criteria andLibraryCodeIsNotNull() {
            addCriterion("library_code is not null");
            return (Criteria) this;
        }

        public Criteria andLibraryCodeEqualTo(String value) {
            addCriterion("library_code =", value, "libraryCode");
            return (Criteria) this;
        }

        public Criteria andLibraryCodeNotEqualTo(String value) {
            addCriterion("library_code <>", value, "libraryCode");
            return (Criteria) this;
        }

        public Criteria andLibraryCodeGreaterThan(String value) {
            addCriterion("library_code >", value, "libraryCode");
            return (Criteria) this;
        }

        public Criteria andLibraryCodeGreaterThanOrEqualTo(String value) {
            addCriterion("library_code >=", value, "libraryCode");
            return (Criteria) this;
        }

        public Criteria andLibraryCodeLessThan(String value) {
            addCriterion("library_code <", value, "libraryCode");
            return (Criteria) this;
        }

        public Criteria andLibraryCodeLessThanOrEqualTo(String value) {
            addCriterion("library_code <=", value, "libraryCode");
            return (Criteria) this;
        }

        public Criteria andLibraryCodeLike(String value) {
            addCriterion("library_code like", value, "libraryCode");
            return (Criteria) this;
        }

        public Criteria andLibraryCodeNotLike(String value) {
            addCriterion("library_code not like", value, "libraryCode");
            return (Criteria) this;
        }

        public Criteria andLibraryCodeIn(List<String> values) {
            addCriterion("library_code in", values, "libraryCode");
            return (Criteria) this;
        }

        public Criteria andLibraryCodeNotIn(List<String> values) {
            addCriterion("library_code not in", values, "libraryCode");
            return (Criteria) this;
        }

        public Criteria andLibraryCodeBetween(String value1, String value2) {
            addCriterion("library_code between", value1, value2, "libraryCode");
            return (Criteria) this;
        }

        public Criteria andLibraryCodeNotBetween(String value1, String value2) {
            addCriterion("library_code not between", value1, value2, "libraryCode");
            return (Criteria) this;
        }

        public Criteria andProdectCodeIsNull() {
            addCriterion("prodect_code is null");
            return (Criteria) this;
        }

        public Criteria andProdectCodeIsNotNull() {
            addCriterion("prodect_code is not null");
            return (Criteria) this;
        }

        public Criteria andProdectCodeEqualTo(Integer value) {
            addCriterion("prodect_code =", value, "prodectCode");
            return (Criteria) this;
        }

        public Criteria andProdectCodeNotEqualTo(Integer value) {
            addCriterion("prodect_code <>", value, "prodectCode");
            return (Criteria) this;
        }

        public Criteria andProdectCodeGreaterThan(Integer value) {
            addCriterion("prodect_code >", value, "prodectCode");
            return (Criteria) this;
        }

        public Criteria andProdectCodeGreaterThanOrEqualTo(Integer value) {
            addCriterion("prodect_code >=", value, "prodectCode");
            return (Criteria) this;
        }

        public Criteria andProdectCodeLessThan(Integer value) {
            addCriterion("prodect_code <", value, "prodectCode");
            return (Criteria) this;
        }

        public Criteria andProdectCodeLessThanOrEqualTo(Integer value) {
            addCriterion("prodect_code <=", value, "prodectCode");
            return (Criteria) this;
        }

        public Criteria andProdectCodeIn(List<Integer> values) {
            addCriterion("prodect_code in", values, "prodectCode");
            return (Criteria) this;
        }

        public Criteria andProdectCodeNotIn(List<Integer> values) {
            addCriterion("prodect_code not in", values, "prodectCode");
            return (Criteria) this;
        }

        public Criteria andProdectCodeBetween(Integer value1, Integer value2) {
            addCriterion("prodect_code between", value1, value2, "prodectCode");
            return (Criteria) this;
        }

        public Criteria andProdectCodeNotBetween(Integer value1, Integer value2) {
            addCriterion("prodect_code not between", value1, value2, "prodectCode");
            return (Criteria) this;
        }

        public Criteria andProdectNameIsNull() {
            addCriterion("prodect_name is null");
            return (Criteria) this;
        }

        public Criteria andProdectNameIsNotNull() {
            addCriterion("prodect_name is not null");
            return (Criteria) this;
        }

        public Criteria andProdectNameEqualTo(String value) {
            addCriterion("prodect_name =", value, "prodectName");
            return (Criteria) this;
        }

        public Criteria andProdectNameNotEqualTo(String value) {
            addCriterion("prodect_name <>", value, "prodectName");
            return (Criteria) this;
        }

        public Criteria andProdectNameGreaterThan(String value) {
            addCriterion("prodect_name >", value, "prodectName");
            return (Criteria) this;
        }

        public Criteria andProdectNameGreaterThanOrEqualTo(String value) {
            addCriterion("prodect_name >=", value, "prodectName");
            return (Criteria) this;
        }

        public Criteria andProdectNameLessThan(String value) {
            addCriterion("prodect_name <", value, "prodectName");
            return (Criteria) this;
        }

        public Criteria andProdectNameLessThanOrEqualTo(String value) {
            addCriterion("prodect_name <=", value, "prodectName");
            return (Criteria) this;
        }

        public Criteria andProdectNameLike(String value) {
            addCriterion("prodect_name like", value, "prodectName");
            return (Criteria) this;
        }

        public Criteria andProdectNameNotLike(String value) {
            addCriterion("prodect_name not like", value, "prodectName");
            return (Criteria) this;
        }

        public Criteria andProdectNameIn(List<String> values) {
            addCriterion("prodect_name in", values, "prodectName");
            return (Criteria) this;
        }

        public Criteria andProdectNameNotIn(List<String> values) {
            addCriterion("prodect_name not in", values, "prodectName");
            return (Criteria) this;
        }

        public Criteria andProdectNameBetween(String value1, String value2) {
            addCriterion("prodect_name between", value1, value2, "prodectName");
            return (Criteria) this;
        }

        public Criteria andProdectNameNotBetween(String value1, String value2) {
            addCriterion("prodect_name not between", value1, value2, "prodectName");
            return (Criteria) this;
        }

        public Criteria andAmountIsNull() {
            addCriterion("amount is null");
            return (Criteria) this;
        }

        public Criteria andAmountIsNotNull() {
            addCriterion("amount is not null");
            return (Criteria) this;
        }

        public Criteria andAmountEqualTo(Long value) {
            addCriterion("amount =", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotEqualTo(Long value) {
            addCriterion("amount <>", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThan(Long value) {
            addCriterion("amount >", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThanOrEqualTo(Long value) {
            addCriterion("amount >=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThan(Long value) {
            addCriterion("amount <", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThanOrEqualTo(Long value) {
            addCriterion("amount <=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountIn(List<Long> values) {
            addCriterion("amount in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotIn(List<Long> values) {
            addCriterion("amount not in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountBetween(Long value1, Long value2) {
            addCriterion("amount between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotBetween(Long value1, Long value2) {
            addCriterion("amount not between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andUnitIsNull() {
            addCriterion("unit is null");
            return (Criteria) this;
        }

        public Criteria andUnitIsNotNull() {
            addCriterion("unit is not null");
            return (Criteria) this;
        }

        public Criteria andUnitEqualTo(String value) {
            addCriterion("unit =", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitNotEqualTo(String value) {
            addCriterion("unit <>", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitGreaterThan(String value) {
            addCriterion("unit >", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitGreaterThanOrEqualTo(String value) {
            addCriterion("unit >=", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitLessThan(String value) {
            addCriterion("unit <", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitLessThanOrEqualTo(String value) {
            addCriterion("unit <=", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitLike(String value) {
            addCriterion("unit like", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitNotLike(String value) {
            addCriterion("unit not like", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitIn(List<String> values) {
            addCriterion("unit in", values, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitNotIn(List<String> values) {
            addCriterion("unit not in", values, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitBetween(String value1, String value2) {
            addCriterion("unit between", value1, value2, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitNotBetween(String value1, String value2) {
            addCriterion("unit not between", value1, value2, "unit");
            return (Criteria) this;
        }

        public Criteria andCostIsNull() {
            addCriterion("cost is null");
            return (Criteria) this;
        }

        public Criteria andCostIsNotNull() {
            addCriterion("cost is not null");
            return (Criteria) this;
        }

        public Criteria andCostEqualTo(Long value) {
            addCriterion("cost =", value, "cost");
            return (Criteria) this;
        }

        public Criteria andCostNotEqualTo(Long value) {
            addCriterion("cost <>", value, "cost");
            return (Criteria) this;
        }

        public Criteria andCostGreaterThan(Long value) {
            addCriterion("cost >", value, "cost");
            return (Criteria) this;
        }

        public Criteria andCostGreaterThanOrEqualTo(Long value) {
            addCriterion("cost >=", value, "cost");
            return (Criteria) this;
        }

        public Criteria andCostLessThan(Long value) {
            addCriterion("cost <", value, "cost");
            return (Criteria) this;
        }

        public Criteria andCostLessThanOrEqualTo(Long value) {
            addCriterion("cost <=", value, "cost");
            return (Criteria) this;
        }

        public Criteria andCostIn(List<Long> values) {
            addCriterion("cost in", values, "cost");
            return (Criteria) this;
        }

        public Criteria andCostNotIn(List<Long> values) {
            addCriterion("cost not in", values, "cost");
            return (Criteria) this;
        }

        public Criteria andCostBetween(Long value1, Long value2) {
            addCriterion("cost between", value1, value2, "cost");
            return (Criteria) this;
        }

        public Criteria andCostNotBetween(Long value1, Long value2) {
            addCriterion("cost not between", value1, value2, "cost");
            return (Criteria) this;
        }

        public Criteria andFlagIsNull() {
            addCriterion("flag is null");
            return (Criteria) this;
        }

        public Criteria andFlagIsNotNull() {
            addCriterion("flag is not null");
            return (Criteria) this;
        }

        public Criteria andFlagEqualTo(Boolean value) {
            addCriterion("flag =", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagNotEqualTo(Boolean value) {
            addCriterion("flag <>", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagGreaterThan(Boolean value) {
            addCriterion("flag >", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagGreaterThanOrEqualTo(Boolean value) {
            addCriterion("flag >=", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagLessThan(Boolean value) {
            addCriterion("flag <", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagLessThanOrEqualTo(Boolean value) {
            addCriterion("flag <=", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagIn(List<Boolean> values) {
            addCriterion("flag in", values, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagNotIn(List<Boolean> values) {
            addCriterion("flag not in", values, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagBetween(Boolean value1, Boolean value2) {
            addCriterion("flag between", value1, value2, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagNotBetween(Boolean value1, Boolean value2) {
            addCriterion("flag not between", value1, value2, "flag");
            return (Criteria) this;
        }

        public Criteria andRemarksIsNull() {
            addCriterion("remarks is null");
            return (Criteria) this;
        }

        public Criteria andRemarksIsNotNull() {
            addCriterion("remarks is not null");
            return (Criteria) this;
        }

        public Criteria andRemarksEqualTo(String value) {
            addCriterion("remarks =", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotEqualTo(String value) {
            addCriterion("remarks <>", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksGreaterThan(String value) {
            addCriterion("remarks >", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksGreaterThanOrEqualTo(String value) {
            addCriterion("remarks >=", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksLessThan(String value) {
            addCriterion("remarks <", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksLessThanOrEqualTo(String value) {
            addCriterion("remarks <=", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksLike(String value) {
            addCriterion("remarks like", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotLike(String value) {
            addCriterion("remarks not like", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksIn(List<String> values) {
            addCriterion("remarks in", values, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotIn(List<String> values) {
            addCriterion("remarks not in", values, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksBetween(String value1, String value2) {
            addCriterion("remarks between", value1, value2, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotBetween(String value1, String value2) {
            addCriterion("remarks not between", value1, value2, "remarks");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}